import request from '@/utils/request'

export default {
  //退出功能
  logout () {
    return request({
      url: `/educenter/member/logout`,
      method: 'get',
    })
  },


  //获取token信息接口
  getUserInfo () {
    return request({
      url: `/educenter/member/getUserInfo`,
      method: 'get',
      Headers: {}
    })
  },

  //登录接口
  loginUser (params) {
    return request({
      url: `/educenter/member/login`,
      method: 'post',
      data: params
    })
  },


  //注册接口
  //发送验证码
  sendCode (phone) {
    return request({
      url: `/edusms/sms/sendMessage/${phone}`,
      method: 'get'
    })
  },

  //注册用户
  registerUser (userParam) {
    return request({
      url: `/educenter/member/register`,
      method: 'post',
      data: userParam
    })
  }
}